package com.designpattern.fourthchapter.upgrade;

import com.designpattern.fourthchapter.Pizza;

public class ChicagoStylePizzaStore extends PizzaStore{

	@Override
	public Pizza createPizza(String type) {
		
		Pizza pizza = null;
		if ("cheese".equals(type)) {
			pizza = new ChicagoStyleCheesePizza();
		} else if ("clam".equals(type)) {
			pizza = new ChicagoStyleClamPizza();
		}
		return pizza;
	}

}
